import request from "@/utils/request";

export default {
  updateOrAdd(index, selectedId,rightNum,selectedNum) {
    return request({
      url: `/userRecord/updateOrAdd/${index}/${selectedId}/${rightNum}/${selectedNum}`,
      method: "put",
    });
  },
  getBySelectId(selectedId) {
    return request({
      url: `/userRecord/getBySelectId/${selectedId}`,
      method: "get",
    });
  },
  deleteBySelectId(selectedId){
    return request({
      url: `/userRecord/deleteBySelectId/${selectedId}`,
      method: "delete",
    });
  }
};
